/********************************************************************************
 * Copyright (c)2016-2020, ShenZhen WanJiaAn Technology CO.,LTD.
 * All Rights Reserved.
 *
 * File Name     : CaptureIsp.c
 * Author        : joki.zhu
 * Date          : 2020-01-07
 *
 * Record        :
 * 1.Date        : 2020-01-07
 *   Author      : joki.zhu
 *   Modification: Created file
 ********************************************************************************/
#include "app_common.h"
#include "CaptureIsp.h"

static pthread_t gs_ispPid;

static void *tskIspRun(void *args)
{
    SET_THREAD_NAME("tskIspRun");
    pthread_detach(pthread_self());

#if 0
    while (1)
    {
        
    }
#endif

    pthread_exit(0);
}

int CaptureIspInit(void)
{
#ifdef MINI_APP
        return 0;
#endif /* MINI_APP */

    int ret = 0;

    ret = pthread_create(&gs_ispPid, NULL, tskIspRun, NULL);
    if (ret != 0) {
        LOGE("pthread_create tskIspRun failed\n");
        return -1;
    }

    return 0;
}

int CaptureIspDeinit(void)
{
    pthread_cancel(gs_ispPid);

    return 0;
}

